﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace SPRemoteService.SPServer.ISAPI
{
    [ServiceContract]
    public interface IRemoteService
    {
        [OperationContract]
        bool ConnectTo(string appId);

        [OperationContract]
        string Disconnect();

        [OperationContract]
        string RegisterApp(string endpointUrl);

        [OperationContract]
        void UnRegisterApp(string appId);

        [OperationContract]
        bool OpenFile(string appId, string siteUrl, string fileUrl);

        [OperationContract]
        bool PageUp(string appId);

        [OperationContract]
        bool PageDown(string appId);

        [OperationContract]
        void CloseFile(string appId);
    }
}
